﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmSeguimientoImportacion.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmSeguimientoImportacion" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <style type="text/css">
        .filas
        {
            padding: 0.25em 0.5em !important;
        }
        .contenido
        {
            padding: 0 !important;
            height: 0px !important;
        }
    </style>
    <script type="text/javascript">
        function url() {
            open('wFrmSeguimientoImportacionReport.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=650,status=yes,resizable=yes,scrollbars=yes');
        }
        function MostrarDatos() {
            btnVerDetalle.DoClick();
        }
        function BuscarImportaciones() {
            btnBuscarImp.DoClick();
        }
        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();
                control.value = 'N';
            }
        }

    </script>

    <div class="main-header" style="width: 100%">
        <div class="main-titulo" style="width: 87%;">
            Importaciones
        </div>
    </div>
    <div class="content-form">
        <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
        <dx:ASPxRoundPanel ID="RPImportaciones" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetY="0px"
            HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
            Width="100%" ShowHeader="False">
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table>
                        <tr>
                            <td class="filas">
                                <dx:ASPxButton ID="cmdNuevo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="cmdNuevo_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Nuevo" Height="22px" Width="100px">
                                    <Image Url="~/Images/bt_new_button.gif">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                            <td class="filas">
                                <dx:ASPxButton ID="cmdModificar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Modificar" Height="21px" Width="100px" AutoPostBack="False" OnClick="cmdModificar_Click">
                                    <Image Url="~/Images/edit2.gif">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                            <td class="filas">
                                <dx:ASPxButton ID="btnAnalizar" runat="server" Text="Comparar pedido" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="100px" OnClick="btnAnalizar_Click">
                                   
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                             <td>
                                <dx:ASPxButton ID="btnGenerarBackOrder" runat="server" Text="Generar pedido pendiente"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    OnClick="btnGenerarBackOrder_Click" Width="150px">
                                    <Image Height="5px">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                            <td class="filas">
                                <dx:ASPxButton ID="btnDocRelacionado" runat="server" Text="Documentos relacionado" 
                                    AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" OnClick="btnDocRelacionado_Click" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="120px">
                                    <Paddings Padding="2px" />
                                </dx:ASPxButton>
                            
                            </td>
                               <td class="filas">
                                <dx:ASPxButton ID="btnExportar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="btnExportar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Exportar" Width="100px">
                                    <Image Url="~/Images/excel16.gif">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                            <td class="filas">
                                <dx:ASPxButton ID="cmdAnular" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Anular" Width="100px" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {PopupMsjConfirmacion.Show();}"></ClientSideEvents>
                                    <ClientSideEvents Click="function(s, e) {PopupMsjConfirmacion.Show();}" />
                                    <Image Url="~/Images/delete.png">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                       
                            <td class="filas">
                                <dx:ASPxButton ID="cmdSalir" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Salir" OnClick="cmdSalir_Click" Height="23px" Width="100px">
                                    <Image Url="~/Images/logout.png">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                         
                           
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td class="filas">
                                <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Org.Venta:">
                                </dx:ASPxLabel>
                            </td>
                            <td class="filas">
                                <dx:ASPxComboBox ID="cboOrgaVEnta" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Height="30px">
                                    <ItemStyle Height="30px" />
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <DropDownButton Width="20px">
                                    </DropDownButton>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                    <Paddings PaddingLeft="5px"></Paddings>
                                </dx:ASPxComboBox>
                            </td>
                            <td class="filas">
                                <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                                    Text="Año Inicial (fech.llego puerto):">
                                </dx:ASPxLabel>
                            </td>
                            <td class="filas">
                                <dx:ASPxComboBox ID="cboAnio" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SelectedIndex="1" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    LoadingPanelText="Cargando&amp;hellip;" Height="30px">
                                    <Items>
                                        <dx:ListEditItem Text="1996" Value="1996" />
                                        <dx:ListEditItem Text="1997" Value="1997" />
                                        <dx:ListEditItem Text="1998" Value="1998" />
                                        <dx:ListEditItem Text="1999" Value="1999" />
                                        <dx:ListEditItem Text="2000" Value="2000" />
                                        <dx:ListEditItem Text="2001" Value="2001" />
                                        <dx:ListEditItem Text="2002" Value="2002" />
                                        <dx:ListEditItem Text="2003" Value="2003" />
                                        <dx:ListEditItem Text="2004" Value="2004" />
                                        <dx:ListEditItem Text="2005" Value="2005" />
                                        <dx:ListEditItem Text="2006" Value="2006" />
                                        <dx:ListEditItem Text="2007" Value="2007" />
                                        <dx:ListEditItem Text="2008" Value="2008" />
                                        <dx:ListEditItem Text="2009" Value="2009" />
                                        <dx:ListEditItem Text="2010" Value="2010" />
                                        <dx:ListEditItem Text="2011" Value="2011" />
                                        <dx:ListEditItem Text="2012" Value="2012" />
                                        <dx:ListEditItem Selected="true" Text="2013" Value="2013" />
                                        <dx:ListEditItem Text="2014" Value="2014" />
                                        <dx:ListEditItem Text="2015" Value="2015" />
                                        <dx:ListEditItem Text="2016" Value="2016" />
                                        <dx:ListEditItem Text="2017" Value="2017" />
                                        <dx:ListEditItem Text="2018" Value="2018" />
                                        <dx:ListEditItem Text="2019" Value="2019" />
                                        <dx:ListEditItem Text="2020" Value="2020" />
                                    </Items>
                                    <ItemStyle Height="30px" />
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <DropDownButton Width="20px">
                                    </DropDownButton>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                    <Paddings PaddingLeft="5px"></Paddings>
                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                        </RegularExpression>
                                    </ValidationSettings>
                                </dx:ASPxComboBox>
                            </td>
                            <td class="filas">
                              <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Año final:">
                                </dx:ASPxLabel>

                            </td>
                            <td class="filas">

                            
                                <dx:ASPxComboBox ID="cboAnioFinal" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Height="30px" 
                                    LoadingPanelText="Cargando&amp;hellip;" SelectedIndex="1" Spacing="0" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <Items>
                                        <dx:ListEditItem Text="1996" Value="1996" />
                                        <dx:ListEditItem Selected="True" Text="1997" Value="1997" />
                                        <dx:ListEditItem Text="1998" Value="1998" />
                                        <dx:ListEditItem Text="1999" Value="1999" />
                                        <dx:ListEditItem Text="2000" Value="2000" />
                                        <dx:ListEditItem Text="2001" Value="2001" />
                                        <dx:ListEditItem Text="2002" Value="2002" />
                                        <dx:ListEditItem Text="2003" Value="2003" />
                                        <dx:ListEditItem Text="2004" Value="2004" />
                                        <dx:ListEditItem Text="2005" Value="2005" />
                                        <dx:ListEditItem Text="2006" Value="2006" />
                                        <dx:ListEditItem Text="2007" Value="2007" />
                                        <dx:ListEditItem Text="2008" Value="2008" />
                                        <dx:ListEditItem Text="2009" Value="2009" />
                                        <dx:ListEditItem Text="2010" Value="2010" />
                                        <dx:ListEditItem Text="2011" Value="2011" />
                                        <dx:ListEditItem Text="2012" Value="2012" />
                                        <dx:ListEditItem Text="2013" Value="2013" />
                                        <dx:ListEditItem Text="2014" Value="2014" />
                                        <dx:ListEditItem Text="2015" Value="2015" />
                                        <dx:ListEditItem Text="2016" Value="2016" />
                                        <dx:ListEditItem Text="2017" Value="2017" />
                                        <dx:ListEditItem Text="2018" Value="2018" />
                                        <dx:ListEditItem Text="2019" Value="2019" />
                                        <dx:ListEditItem Text="2020" Value="2020" />
                                    </Items>
                                    <ItemStyle Height="30px" />
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <DropDownButton Width="20px">
                                    </DropDownButton>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                    <ValidationSettings ErrorText="Valor inválido">
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                    </ValidationSettings>
                                </dx:ASPxComboBox>

                            
                            </td>
                            <td class="filas">
                                <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Estado:">
                                </dx:ASPxLabel>
                            </td>
                            <td class="filas">
                                <dx:ASPxComboBox ID="cboExtado" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Height="30px">
                                    <ItemStyle Height="30px" />
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <DropDownButton Width="20px">
                                    </DropDownButton>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                    <Paddings PaddingLeft="5px"></Paddings>
                                </dx:ASPxComboBox>
                            </td>
                            <td class="filas">
                                <asp:Panel ID="Panel1" runat="server" DefaultButton="cmdMostrar">
                                    <dx:ASPxButton ID="cmdMostrar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" AutoPostBack="false" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                        Text="Mostrar" Width="100px" Height="30px">
                                        <ClientSideEvents Click="function(s, e){BuscarImportaciones();}" />
                                        <ClientSideEvents Click="function(s, e){BuscarImportaciones();}"></ClientSideEvents>
                                        <Image Url="~/Images/search.png">
                                        </Image>
                                    </dx:ASPxButton>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
        <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetY="-19px"
            HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
            View="GroupBox" ShowHeader="False">
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:UpdateProgress runat="server" ID="UpdateProgress1">
                                <ProgressTemplate>
                                    <div id="blur1">
                                    </div>
                                    <div class="verventa-overlay">
                                        <div class="recventa-overlay">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <img src="../Images/loading1.gif" alt="Cargando..." />
                                                    </td>
                                                    <td>
                                                        <strong>Buscando ....</strong>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                            <dx:ASPxGridView ID="dgImportacionCab" runat="server" AutoGenerateColumns="False"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                KeyFieldName="NUM_PEDIDO" DataMember="LOG_IMPORTACIONES" ClientInstanceName="dgImportacionCab"
                                EnableCallBacks="False" OnPageIndexChanged="dgImportacionCab_PageIndexChanged"
                                OnAfterPerformCallback="dgImportacionCab_AfterPerformCallback" CssClass="filas"
                                Width="100%" OnCustomColumnSort="dgImportacionCab_CustomColumnSort">
                                <ClientSideEvents RowDblClick="function(s, e) {MostrarDatos();}" />
                                <ClientSideEvents RowDblClick="function(s, e) {MostrarDatos();}" />
                                <TotalSummary>
                                    <dx:ASPxSummaryItem FieldName="NUM_PEDIDO" SummaryType="Count" DisplayFormat="total de filas = # ##0"
                                        ShowInColumn="Fec. Puerto Est." />
                                </TotalSummary>
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="NUM_PEDIDO_ORIG" VisibleIndex="1" Caption="Nro.Pedido orig."
                                        Width="100px">
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="NUM_PEDIDO" VisibleIndex="1" Caption="Nro.Pedido"
                                        Width="110px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataDateColumn FieldName="FEC_PEDIDO" UnboundType="DateTime" VisibleIndex="2"
                                        Caption="Fec. Pedido" ToolTip="Fecha de pedido" Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataDateColumn FieldName="FEC_EMBARQUE" UnboundType="DateTime" VisibleIndex="5"
                                        Caption="Fec. Embarque" ToolTip="Fecha de embarque" Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataDateColumn FieldName="FEC_LLEG_PUERTO" UnboundType="DateTime" VisibleIndex="6"
                                        Caption="Fech.Llego&lt;/br&gt; Puerto" Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataDateColumn FieldName="FEC_LLEG_EST_PUERTO" UnboundType="DateTime"
                                        VisibleIndex="4" Caption="Fec. Puerto Est." ToolTip="Fecha estimada de llegada a puerto"
                                        Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataDateColumn FieldName="FEC_LLEG_ALMACEN" UnboundType="DateTime" VisibleIndex="11"
                                        Caption="Fec. Ing.&lt;/br&gt; Almacén" 
                                        ToolTip="Fecha de ingreso a almacén" Width="110px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataTextColumn FieldName="Estado" VisibleIndex="17" Width="100px">
                                        <PropertiesTextEdit>
                                            <MaskSettings Mask="dd/MM/yyyy" />
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="OBSERVACION" VisibleIndex="18" Caption="Observación"
                                        Width="600px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="Proveedor" VisibleIndex="12" Caption="Proveedor"
                                        Width="250px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                </RegularExpression>
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewBandColumn Caption="Total FOB $" VisibleIndex="10">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="Total_Sug" VisibleIndex="5" Caption="Sug."
                                                Width="100px" ToolTip="Sugerido">
                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                                <Settings SortMode="Custom" />
                                                <Settings SortMode="Custom" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="Total_Cot" VisibleIndex="6" Caption="Cot."
                                                Width="100px" ToolTip="Cotizado">
                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                                <Settings SortMode="Custom" />
                                                <Settings SortMode="Custom" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="Total_Pac" VisibleIndex="7" Caption="Emb."
                                                ToolTip="Embarcado" Width="100px">
                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                                <Settings SortMode="Custom" />
                                                <Settings SortMode="Custom" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewBandColumn>
                                    <dx:GridViewDataTextColumn Caption="Fec. Emb. Est." FieldName="FEC_EMBARQUE_EST"
                                        VisibleIndex="3" ToolTip="Fecha de embarque estimado" Width="100px">
                                        <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Tipo transporte" FieldName="Tipo_transporte"
                                        VisibleIndex="13" Width="100px">
                                        <Settings SortMode="Custom" />
                                        <Settings SortMode="Custom" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_PROVEEDOR" Visible="False" 
                                        VisibleIndex="14">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_ORG_VTA" Visible="False" 
                                        VisibleIndex="15">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_OFI_VTA" Visible="False" 
                                        VisibleIndex="19">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="DES_ORG_VTA" Visible="False" 
                                        VisibleIndex="16">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="PIES40" FieldName="PIES40" VisibleIndex="8" 
                                        Width="50px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="PIES20" FieldName="PIES20" VisibleIndex="9" 
                                        Width="50px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="ID_IMP_IMPORTACION_CAB" FieldName="ID_IMP_IMPORTACION_CAB"
                                        VisibleIndex="20" Width="10px" Visible="False">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Retraso&lt;br&gt;Lleg." FieldName="Diferencia"
                                        VisibleIndex="7" Width="50px">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager PageSize="20" Visible="False" Mode="ShowAllRecords">
                                </SettingsPager>
                                <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="True" VerticalScrollableHeight="370"
                                    ShowFooter="True" ShowFilterRow="True" />                             
                                <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                            <dx:ASPxButton ID="btnVerDetalle" runat="server" OnClick="btnDetalle_Click" ClientVisible="false"
                                ClientInstanceName="btnVerDetalle" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="1px">
                            </dx:ASPxButton>
                            <dx:ASPxButton ID="btnBuscarImp" runat="server" OnClick="cmdMostrar_Click" ClientVisible="false"
                                ClientInstanceName="btnBuscarImp" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="1px">
                            </dx:ASPxButton>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
    </div>
    <asp:UpdatePanel runat="server" UpdateMode="Always">
        <ContentTemplate>
            <dx:ASPxPopupControl ID="popupDetalle" runat="server" AllowDragging="True" Width="1000px"
                ClientInstanceName="popupDetalle" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue" HeaderText="Detalle Importaciones" 
                Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                EnableHotTrack="False">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingLeft="7px" />
                </HeaderStyle>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                        <dx:ASPxGridView ID="dgImportacionDet" runat="server" AutoGenerateColumns="False"
                            ClientInstanceName="dGrid" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                            CssPostfix="Office2010Blue" KeyFieldName="COD_MATERIAL" OnAfterPerformCallback="dgImportacionDet_AfterPerformCallback"
                            OnPageIndexChanged="dgImportacionDet_PageIndexChanged" Width="100%">
                            <TotalSummary>
                                <dx:ASPxSummaryItem FieldName="Total_Cot" SummaryType="Sum" DisplayFormat="Total={0:#,##0}" />
                                <dx:ASPxSummaryItem FieldName="Total_Pac" SummaryType="Sum" DisplayFormat="Total={0:#,##0}" />
                                <dx:ASPxSummaryItem FieldName="Total_Sug" SummaryType="Sum" DisplayFormat="Total={0:#,##0}" />
                                <dx:ASPxSummaryItem DisplayFormat="Total={0:#,##0}" FieldName="Cant_Sug" SummaryType="Sum" />
                                <dx:ASPxSummaryItem DisplayFormat="Total={0:#,##0}" FieldName="Cant_Pac" SummaryType="Sum" />
                                <dx:ASPxSummaryItem DisplayFormat="Total={0:#,##0}" FieldName="Cant_Cot" SummaryType="Sum" />
                            </TotalSummary>
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MATERIAL" ToolTip="Código de articulo"
                                    VisibleIndex="0" Width="150px" FixedStyle="Left">
                                    <PropertiesTextEdit>
                                        <ValidationSettings ErrorText="Valor inválido">
                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        </ValidationSettings>
                                    </PropertiesTextEdit>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Descripción" FieldName="DES_MATERIAL" ToolTip="Descripción de artículo"
                                    VisibleIndex="1" Width="300px" FixedStyle="Left">
                                    <PropertiesTextEdit>
                                        <ValidationSettings ErrorText="Valor inválido">
                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        </ValidationSettings>
                                    </PropertiesTextEdit>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Color" FieldName="COLOR" VisibleIndex="2" Width="150px"
                                    FixedStyle="Left">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="FOB $" FieldName="FOB_ME" ToolTip="Importe FOB en dólares"
                                    VisibleIndex="3" Width="80px" FixedStyle="Left">
                                    <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                        <ValidationSettings ErrorText="Valor inválido">
                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        </ValidationSettings>
                                    </PropertiesTextEdit>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewBandColumn Caption="Cantidades" VisibleIndex="7" FixedStyle="Left">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Sugerido" FieldName="Cant_Sug" VisibleIndex="5"
                                            Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Cotizado" FieldName="Cant_Cot" VisibleIndex="6"
                                            Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Embarcado" FieldName="Cant_Pac" ToolTip="Cantidad embarcada"
                                            VisibleIndex="7" Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewBandColumn>
                                <dx:GridViewBandColumn Caption="Totales" VisibleIndex="9">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Sugerido" FieldName="Total_Sug" VisibleIndex="9"
                                            Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Cotizado" FieldName="Total_Cot" VisibleIndex="10"
                                            Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Embarcado" FieldName="Total_Pac" ToolTip="Importe embarcado"
                                            VisibleIndex="11" Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                <ValidationSettings ErrorText="Valor inválido">
                                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                </ValidationSettings>
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <FooterCellStyle Font-Bold="True">
                                            </FooterCellStyle>
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewBandColumn>
                            </Columns>
                            <SettingsBehavior AllowFocusedRow="True" />
                            <SettingsPager PageSize="50">
                            </SettingsPager>
                            <Settings ShowFilterRow="True" VerticalScrollableHeight="400" ShowFooter="True" />
                            <SettingsLoadingPanel Text="Cargando&amp;hellip;" />
                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanelOnStatusBar>
                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanel>
                            </Images>
                            <ImagesFilterControl>
                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                </LoadingPanel>
                            </ImagesFilterControl>
                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                </Header>
                                <GroupFooter Font-Bold="True">
                                </GroupFooter>
                                <LoadingPanel ImageSpacing="5px">
                                </LoadingPanel>
                            </Styles>
                            <StylesPager>
                                <PageNumber ForeColor="#3E4846">
                                </PageNumber>
                                <Summary ForeColor="#1E395B">
                                </Summary>
                            </StylesPager>
                            <StylesEditors ButtonEditCellSpacing="0">
                                <ProgressBar Height="21px">
                                </ProgressBar>
                            </StylesEditors>
                        </dx:ASPxGridView>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>


            <br />

            <dx:ASPxPopupControl ID="PopupBackOrder" runat="server" 
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Back Order" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                Modal="True" PopupHorizontalAlign="WindowCenter" 
                PopupVerticalAlign="WindowCenter" ClientInstanceName="PopupBackOrder">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <HeaderStyle>
                <Paddings PaddingLeft="7px" />
                </HeaderStyle>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                    
                        <dx:ASPxRoundPanel ID="rpnVentana1" runat="server" Width="100%" 
                            BackColor="White" HeaderText="" View="GroupBox" HorizontalAlign="Center">
                            <HeaderStyle BackColor="White" />
                            <TopLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/TopLeftCorner.png" Width="11px">
                            </TopLeftCorner>
                            <NoHeaderTopLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/NoHeaderTopLeftCorner.png" Width="11px">
                            </NoHeaderTopLeftCorner>
                            <TopRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/TopRightCorner.png" Width="11px">
                            </TopRightCorner>
                            <NoHeaderTopRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/NoHeaderTopRightCorner.png" 
                                Width="11px">
                            </NoHeaderTopRightCorner>
                            <BottomRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/BottomRightCorner.png" Width="11px">
                            </BottomRightCorner>
                            <BottomLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/BottomLeftCorner.png" Width="11px">
                            </BottomLeftCorner>
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                           <table>
                           <tr>
                           <td class="filas">
                           Org.Venta:
                           
                           </td>
                           <td class="filas" align="left">
                               <dx:ASPxComboBox ID="pCboOrganizacionVenta" runat="server" 
                                   CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                   CssPostfix="Office2010Blue" Spacing="0" 
                                   SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                   Width="150px" ClientEnabled="False">
                                   <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                   </LoadingPanelImage>
                                   <LoadingPanelStyle ImageSpacing="5px">
                                   </LoadingPanelStyle>
                                   <ButtonStyle Width="13px">
                                   </ButtonStyle>
                               </dx:ASPxComboBox>
                           </td>
                           <td class="filas">
                           Nro.Pedido Orig:
                           </td>
                           <td class="filas">
                               <dx:ASPxTextBox ID="pTxtNumPEdidoOrig" runat="server" Width="120px" 
                                   CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                   CssPostfix="Office2010Blue" 
                                   SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                   ClientEnabled="False">
                               </dx:ASPxTextBox>
                           </td>

                           <td class="filas">
                           Nro.Pedido:

                           </td>
                           <td class="filas">
                               <dx:ASPxTextBox ID="pTxtNroPedido" runat="server" Width="120px" 
                                   CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                   CssPostfix="Office2010Blue" 
                                   SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                   MaxLength="12">
                               </dx:ASPxTextBox>
                           
                           </td>


                           </tr>
                           
                               <tr>
                                   <td class="filas">

                                   Fecha Pedido:
                                      </td>
                                   <td class="filas" align="left">
                                      
                                       <dx:ASPxDateEdit ID="pdteFechaPedido" runat="server" Width="150px" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" Spacing="0" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                           ClientEnabled="False">
                                           <CalendarProperties>
                                               <HeaderStyle Spacing="1px" />
                                           </CalendarProperties>
                                       </dx:ASPxDateEdit>
                                      
                                      </td>
                                  
                                       <td class="filas">
                                       Fecha Emb. Est:
                                       </td>
                                       <td class="filas">
                                           <dx:ASPxDateEdit ID="pdteFechaEmbEst" runat="server" Width="120px" 
                                               CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                               CssPostfix="Office2010Blue" Spacing="0" 
                                               SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                               <CalendarProperties>
                                                   <HeaderStyle Spacing="1px" />
                                               </CalendarProperties>
                                           </dx:ASPxDateEdit>
                                       
                                       </td>

                                        <td class="filas">
                                        Fecha Lleg. Puerto Est:
                                       </td>
                                   <td class="filas">
                                       <dx:ASPxDateEdit ID="pdteFechaLLegPuertoEst" runat="server" Width="120px" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" Spacing="0" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                           <CalendarProperties>
                                               <HeaderStyle Spacing="1px" />
                                           </CalendarProperties>
                                       </dx:ASPxDateEdit>
                                       
                                       
                                       </td>

                               </tr>
                               <tr>
                                   <td class="filas">
                                       Fecha Almacen</td>
                                   <td align="left" class="filas">
                                       <dx:ASPxDateEdit ID="pdtFechaAlmacen" runat="server" ClientEnabled="False" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" Spacing="0" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                           <CalendarProperties>
                                               <HeaderStyle Spacing="1px" />
                                           </CalendarProperties>
                                           <ButtonStyle Width="13px">
                                           </ButtonStyle>
                                       </dx:ASPxDateEdit>
                                   </td>
                                   <td class="filas">
                                       Fecha Embarque</td>
                                   <td class="filas">
                                       <dx:ASPxDateEdit ID="pdtFechaEmbarque" runat="server" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" Spacing="0" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="120px">
                                           <CalendarProperties>
                                               <HeaderStyle Spacing="1px" />
                                           </CalendarProperties>
                                           <ButtonStyle Width="13px">
                                           </ButtonStyle>
                                       </dx:ASPxDateEdit>
                                   </td>
                                   <td class="filas">
                                       Fecha Lleg. Puerto</td>
                                   <td class="filas">
                                       <dx:ASPxDateEdit ID="pdtFechaLLegaPuerto" runat="server" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" Spacing="0" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="120px">
                                           <CalendarProperties>
                                               <HeaderStyle Spacing="1px" />
                                           </CalendarProperties>
                                           <ButtonStyle Width="13px">
                                           </ButtonStyle>
                                       </dx:ASPxDateEdit>
                                   </td>
                               </tr>
                               <tr>
                                   <td class="filas">
                                       
                                       Proveedor&nbsp;
                                       </td>
                                   <td class="filas" align="left">
                                       
                                       <dx:ASPxTextBox ID="pTxtProveedor" runat="server" Width="170px" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                           ClientEnabled="False">
                                       </dx:ASPxTextBox>
                                       
                                       </td>
                                   <td class="filas">
                                      
                                     
                                      
                                       Tipo de Transporte:
                                      
                                     
                                      
                                      </td>
                                   <td class="filas">
                                      
                                      
                                       
                                      
                                      
                                       <dx:ASPxTextBox ID="pTxtTipoTransporte" runat="server" 
                                           CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                           CssPostfix="Office2010Blue" 
                                           SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                           Width="120px" ClientEnabled="False">
                                       </dx:ASPxTextBox>
                                      
                                      
                                       
                                      
                                      
                                      </td>
                                      <td class="filas">
                                          <dx:ASPxTextBox ID="pTxtIdTipoTransporte" runat="server" ClientVisible="False" 
                                              Width="50px">
                                          </dx:ASPxTextBox>
                                      
                                      </td>
                                      <td class="filas" align="left">
                                      
                                          <dx:ASPxTextBox ID="pTxtIdProveedor" runat="server" ClientVisible="False" 
                                              Width="100px">
                                          </dx:ASPxTextBox>
                                      </td>
                               </tr>
                           
                           </table>






                                </dx:PanelContent>
                            </PanelCollection>
                            <Border BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" />
                        </dx:ASPxRoundPanel>



                        

                        <dx:ASPxRoundPanel ID="rpnVentana2" runat="server" Width="750px" 
                            BackColor="White" HeaderText="" View="GroupBox" Height="500px">
                            <HeaderStyle BackColor="White" />
                            <TopLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/TopLeftCorner.png" Width="11px">
                            </TopLeftCorner>
                            <NoHeaderTopLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/NoHeaderTopLeftCorner.png" Width="11px">
                            </NoHeaderTopLeftCorner>
                            <TopRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/TopRightCorner.png" Width="11px">
                            </TopRightCorner>
                            <NoHeaderTopRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/NoHeaderTopRightCorner.png" 
                                Width="11px">
                            </NoHeaderTopRightCorner>
                            <BottomRightCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/BottomRightCorner.png" Width="11px">
                            </BottomRightCorner>
                            <BottomLeftCorner Height="11px" 
                                Url="~/Images/ASPxRoundPanel/1653159101/BottomLeftCorner.png" Width="11px">
                            </BottomLeftCorner>
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                    <dx:ASPxGridView ID="grdBackOrder" runat="server" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" Width="100%" 
                                        OnAfterPerformCallback="grdBackOrder_AfterPerformCallback" 
                                        KeyFieldName="COD_MATERIAL">
                                        <TotalSummary>
                                            <dx:ASPxSummaryItem ShowInColumn="Cant" FieldName="CANTIDAD" 
                                                SummaryType="Sum" DisplayFormat="(Total={0:#.##})" />
                                            <dx:ASPxSummaryItem DisplayFormat="(Total={0:##,##0.00})" FieldName="TOTAL_FOB_ME" 
                                                ShowInColumn="Total" SummaryType="Sum" />
                                            <dx:ASPxSummaryItem DisplayFormat="(Nro.Articulos={0:#.##})" 
                                                FieldName="ID_IMP_DET" ShowInColumn="Cant.Emb" SummaryType="Count" />
                                        </TotalSummary>
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Código" ShowInCustomizationForm="True" 
                                                ToolTip="Código" VisibleIndex="1" FieldName="COD_MATERIAL" Width="100px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Descripción" ShowInCustomizationForm="True" 
                                                ToolTip="Descripción" VisibleIndex="2" FieldName="DES_MATERIAL_IMP" 
                                                Width="250px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Cant.Emb" ShowInCustomizationForm="True" 
                                                VisibleIndex="6" FieldName="CANT_EMB" Width="100px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewBandColumn Caption="Back Order" ShowInCustomizationForm="True" 
                                                VisibleIndex="10">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn Caption="Cant" ShowInCustomizationForm="True" 
                                                        VisibleIndex="0" FieldName="CANTIDAD" Width="100px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Total" ShowInCustomizationForm="True" 
                                                        VisibleIndex="1" FieldName="TOTAL_FOB_ME" Width="150px">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                            </dx:GridViewBandColumn>
                                            <dx:GridViewDataTextColumn Caption="FOB" ShowInCustomizationForm="True" 
                                                VisibleIndex="3" FieldName="FOB_ME" Width="100px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Cant.Cot" ShowInCustomizationForm="True" 
                                                VisibleIndex="4" FieldName="CANT_COT" Width="100px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Diferencia" ShowInCustomizationForm="True" 
                                                VisibleIndex="8" FieldName="DIFERENCIA" Width="100px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_IMP_DET" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager Mode="ShowAllRecords">
                                        </SettingsPager>
                                        <Settings ShowFooter="True" ShowVerticalScrollBar="True" 
                                            VerticalScrollableHeight="300" />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <Footer Font-Names="Arial" Font-Size="10pt" HorizontalAlign="Center">
                                            </Footer>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B" Font-Size="10pt">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>

                                    <table>
                                    <tr>
                                    <td class="filas" style="width:50%;">
                                    
                                    
                                    </td>
                                    <td class="filas">
                                    
                                        <dx:ASPxButton ID="pBtnGrabar" runat="server" Text="Grabar" 
                                            AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            OnClick="pBtnGrabar_Click">
                                        </dx:ASPxButton>
                                    
                                    </td>

                                    <td class="filas">
                                    
                                    
                                        <dx:ASPxButton ID="pBtnCancelar" runat="server" Text="Cancelar" 
                                            AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ClientSideEvents Click="function(s, e) {
	PopupBackOrder.Hide();
}" />
                                        </dx:ASPxButton>
                                    
                                    
                                    </td>
                                    
                                    </tr>
                                    </table>

                                </dx:PanelContent>
                            </PanelCollection>
                            <Border BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" />
                        </dx:ASPxRoundPanel>



                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>




            <br />
            <dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True"
                ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent5" runat="server">
                                    <table>
                                        <tr>
                                            <td colspan="3">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ¿Estas seguro de anular este registro ?<br />
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnPopAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ClientInstanceName="btnPopAceptar"
                                                    OnClick="btnPopAceptar_Click" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {PopupMsjConfirmacion.Hide();e.processOnServer = true;}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnPopCancelar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Text="Cancelar" AutoPostBack="False" Width="10px">
                                                    <ClientSideEvents Click="function(s, e) {PopupMsjConfirmacion.Hide();}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="PopupReporte" runat="server" AllowDragging="True" ClientInstanceName="PopupReporte"
                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Consultar Reporte"
                LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                Width="300px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel7" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent6" runat="server">
                                    <table>
                                        <tr>
                                            <td>
                                                Nro.Pedido:
                                            </td>
                                            <td>
                                                <dx:ASPxLabel ID="nroPedido" runat="server" ClientInstanceName="nroPedido">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Tipo pedido:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboPedido1" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" 
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                    <ValidationSettings>
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Tipo pedido:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboPedido2" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" 
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                    <ValidationSettings>
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnconsultar" runat="server" Text="Consultar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" OnClick="btnconsultar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {PopupReporte.Hide();e.processOnServer = true;}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btncancelarpop" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {PopupReporte.Hide();}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="PopupMensaheGeneral" runat="server" AllowDragging="True"
                ClientInstanceName="PopupMensaheGeneral" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                Width="350px">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    <Paddings PaddingLeft="7px"></Paddings>
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl10" runat="server" SupportsDisabledAttribute="True">
                        <br />
                        <dx:ASPxPanel ID="ASPxPanel9" runat="server" DefaultButton="btCreate">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent9" runat="server">
                                    <table align="center">
                                        <tr>
                                            <td colspan="2">
                                                <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="center">
                                        <tr>
                                            <td align="center" style="width: 215px">
                                                <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s, e) {PopupMensaheGeneral.Hide();}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            
            
            
            <br />




            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server">
            </dx:ASPxGridViewExporter>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
